package com.friday.dao;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface InvoiceDao {

    int addInvoice(JSONObject invoice);

    int addInvoicedtl(JSONObject invoicedtl);

    JSONObject getInvoiceById(int id);

    JSONObject getInvoiceByOId(int order_id);

    JSONArray getInvoicedtlById(int invoice_id);

    int effectInvoice(int order_id);

}
